import yaml


class YamlUtils:
    @staticmethod
    def read_yaml(yaml_path,node_name):
        with open(yaml_path,'r',encoding='utf-8')as file:
            datas=yaml.safe_load(file)
            login_dict=datas[node_name]
            print(login_dict)
            return list(login_dict.values())



if __name__=='__main__':
    YamlUtils.read_yaml("../datas/test_login.yaml","case_login")